package com.coolgor.axnut.enums.mdmis;


public enum PolicyStatusEnum {
	UNINTRO(1001,"未接收"),
	INTRO(1002,"已接收"),
	SEND(1003,"寄送中"),
	BACK(1004,"已寄回回执"),
	BACKALL(1005,"已退回"),
	RECEIPT(1006,"已回销"),
	WITHDRAWAL(1007,"已撤件"),
	SURRENDER(1008,"已退保"),
	AUTOWITHDRAWAL(1009,"已强撤"),
	ONEWAYRECIEVE(1010,"单程已签收");

	private int state;

	private String stateInfo;

	private PolicyStatusEnum(int state, String stateInfo) {
		this.state = state;
		this.stateInfo = stateInfo;
	}

	public int getState() {
		return state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public static PolicyStatusEnum stateOf(int index) {
		for (PolicyStatusEnum state : values()) {
			if (state.getState() == index) {
				return state;
			}
		}
		return null;
	}
}
